﻿namespace MDXStudio
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;

    public class CellPropertiesWindow : Form
    {
        private Button buttonClose;
        private ColumnHeader columnHeaderProperty;
        private ColumnHeader columnHeaderValue;
        private IContainer components;
        private ListView listViewProperties;
        private Panel panel1;

        public CellPropertiesWindow()
        {
            this.InitializeComponent();
        }

        public void AddProperty(string name, string value)
        {
            ListViewItem item = new ListViewItem(name);
            item.SubItems.Add(value);
            this.listViewProperties.Items.Add(item);
        }

        private void buttonClose_Click(object sender, EventArgs e)
        {
            base.Close();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(CellPropertiesWindow));
            this.panel1 = new Panel();
            this.listViewProperties = new ListView();
            this.columnHeaderProperty = new ColumnHeader();
            this.columnHeaderValue = new ColumnHeader();
            this.buttonClose = new Button();
            this.panel1.SuspendLayout();
            base.SuspendLayout();
            this.panel1.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
            this.panel1.BorderStyle = BorderStyle.Fixed3D;
            this.panel1.Controls.Add(this.listViewProperties);
            this.panel1.Location = new Point(12, 12);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x14f, 0x13c);
            this.panel1.TabIndex = 0;
            this.listViewProperties.Columns.AddRange(new ColumnHeader[] { this.columnHeaderProperty, this.columnHeaderValue });
            this.listViewProperties.Dock = DockStyle.Fill;
            this.listViewProperties.HeaderStyle = ColumnHeaderStyle.Nonclickable;
            this.listViewProperties.Location = new Point(0, 0);
            this.listViewProperties.Name = "listViewProperties";
            this.listViewProperties.Size = new Size(0x14b, 0x138);
            this.listViewProperties.TabIndex = 0;
            this.listViewProperties.UseCompatibleStateImageBehavior = false;
            this.listViewProperties.View = View.Details;
            this.columnHeaderProperty.Text = "Property";
            this.columnHeaderProperty.Width = 0xb7;
            this.columnHeaderValue.Text = "Value";
            this.columnHeaderValue.Width = 0x8e;
            this.buttonClose.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
            this.buttonClose.Location = new Point(0x110, 0x15c);
            this.buttonClose.Name = "buttonClose";
            this.buttonClose.Size = new Size(0x4b, 0x17);
            this.buttonClose.TabIndex = 1;
            this.buttonClose.Text = "Close";
            this.buttonClose.UseVisualStyleBackColor = true;
            this.buttonClose.Click += new EventHandler(this.buttonClose_Click);
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x166, 0x188);
            base.Controls.Add(this.buttonClose);
            base.Controls.Add(this.panel1);
            base.Icon = (Icon) manager.GetObject("$this.Icon");
            base.Name = "CellPropertiesWindow";
            this.Text = "Cell Properties";
            this.panel1.ResumeLayout(false);
            base.ResumeLayout(false);
        }
    }
}

